package com.dlc.shop.bean.dto;

import com.dlc.shop.common.util.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 用户订单自提参数
 *
 * @author FrozenWatermelon
 * @date 2020-12-05 14:13:50
 */
@Data
public class OrderStationDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "自提门店id")
    private Long stationId;

    @Schema(description = "纬度")
    private Double lat;

    @Schema(description = "经度")
    private Double lng;

    @Schema(description = "门店名称")
    private String stationName;

    @Schema(description = "店铺id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long shopId;

    /**
     * 用于门店库存判断
     */
    @Schema(description = "自提商品列表", requiredMode = Schema.RequiredMode.REQUIRED)
    List<OrderStationProdDto> stationProdList;

    /**
     * 用于订单门店列表查询
     */
    @Schema(description = "自提门店id列表")
    private List<Long> stationIds;

    @Schema(description = "秒杀活动id")
    private Long seckillId;

    @Schema(description = "秒杀活动id")
    private PageParam page;
}
